from django.conf.urls import patterns, url

from mappapp import views

#uuidregex = "[0-9a-f]{8}_[0-9a-f]{4}_[0-9a-f]{4}_[0-9a-f]{4}_[0-9a-f]{12}"
uuidregex = "[0-9a-f]{20}"

urlpatterns = patterns('',
    # ex: www.weburl.com/
    url(r'^$', views.index, name='index'),
    url(r'^detail/(?P<query_id>%s)/$' % uuidregex, views.detail, name='detail'),
#    url(r'^detail/(?P<query_id>%s)/(?P<page>\d+)$' % uuidregex, views.detail, name='detail'),
    url(r'^result/(?P<query_id>%s)/$' % uuidregex, views.result, name='result'),
    url(r'^download/(?P<query_id>%s)/(?P<dwltype>[a-z]{3,6})/$' % uuidregex, views.download, name='download'),
)
